<template>
  <div class="login-wrapper">
    <login-header />

    <div class="login-container">
      <div class="title-container">
        <h1 class="title margin-no">{{ $t('pages.login.loginTitle') }}</h1>
        <h1 class="title">JulyCMS</h1>
      </div>

      <login />
    </div>

    <lay-footer class="copyright" />
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';

import LayFooter from '@/layouts/components/Footer.vue';
import { useSettingStore } from '@/store';

import LoginHeader from './components/Header.vue';
import Login from './components/Login.vue';

const settingStore = useSettingStore();
onMounted(() => {
  settingStore.updateConfig({
    brandTheme: settingStore.brandTheme,
    mode: settingStore.mode,
  });
});
</script>

<style lang="less" scoped>
@import './index.less';
</style>
